package cn.credit.loan.dao.loanapplication;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.credit.loan.entity.Loanapplication;

/**
 * 申请贷款信息类Dao层---Mapper接口
 * @author LI
 *
 */
public interface LoanapplicationMapper {
	/**
	 * 查看所有的申请贷款信息列表
	 * @param loanapplication
	 * @return
	 */
	public List<Loanapplication> getLoanAppLicationList(Loanapplication loanapplication)throws Exception;
	
	/**
	 * 客户提交申请贷款信息
	 * @param loanapplication
	 * @return
	 */
	public int addLoanapp(Loanapplication loanapplication)throws Exception;
	/**
	 * 删除申请贷款信息
	 * @param loanId
	 * @return
	 * @throws Exception
	 */
	public boolean deleteLoanapp(int loanId)throws Exception;
	
	/**
	 * 根据客户提交申请贷款更改审查状态
	 * @param type
	 * @return
	 */
	public int updateByLoan(@Param("lonaId")String lonaId,@Param("type")String type);
}
